package com.sp.constant;

/**
 * Redis键常量
 *
 * @author tong
 * @date 2024/3/24 20:04
 */
public class RedisConstant {

    public static final String LOGIN_CHECKCODE_KEY = "employee:login:checkCode:";
    public static final long LOGIN_CHECKCODE_TTL = 10;
    public static final String EMPLOYEE_LOGIN_USERNAME = "employee:login:username:";

    public static final String EMPLOYEE_INFO_USERNAME = "employee:info:username:";
    public static final long EMPLOYEE_INFO_TTL = 600;
    public static final long EMPLOYEE_INFO_NULL_TTL = 2;

    public static final String EMPLOYEE_ROLES = "employee:roles";
    public static final long EMPLOYEE_ROLES_TTL = 600;

    public static final String EMPLOYEE_MENU_ROLE = "employee:menu:role:";
    public static final long EMPLOYEE_MENU_ROLE_TTL = 600;
    public static final String EMPLOYEE_MENUS = "employee:menus";
    public static final long EMPLOYEE_MENUS_TTL = 600;

    public static final String EMPLOYEE_PERMISSIONS = "employee:permissions";
    public static final long EMPLOYEE_PERMISSIONS_TTL = 600;

    public static final String USER_INFO_CARNUMBER = "user:info:carNumber:";
    public static final long USER_INFO_TTL = 600;
    public static final long USER_INFO_NULL_TTL = 2;
    public static final String USER_LOCK_CARNUMBER = "user:lock:carNumber:";
    public static final long USER_LOCK_CARNUMBER_TTL = 10;

}
